<%--
	飲食店向け受注システム
	メイン画面
	チーム名：Wild_Card
	作成：南橋　由起子
	作成日：2014/09/24
---%>
<%@page import="wildcard.servlet.LoginBean" import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

	<% String title = (String)request.getAttribute("title"); %>


<title>レポート画面</title>
</head>
<body>
	<table>
		<tr>
			<td colspan="390"><font size="18" color="F92500"><%=title %></font></td>
			<td><form action="maintenance_menu.jsp" method="post">
					<button type="submit" style="WIDTH: 120px; HEIGHT: 45px">
						<font style="font-size: 20px" color="FFFF00" bgcolor="32CCB6">メインメニューに戻る
					</button>
				</form></td>
		</tr>
	</table>
	<br>

	<%
		ArrayList<ArrayList<String>> resultList = (ArrayList<ArrayList<String>>) request
				.getAttribute("result");
	%>

	<table border="1">
		<%
			for (int row = 0; row < resultList.size(); row++) {
				ArrayList<String> record = resultList.get(row);
		%>
				<tr>
		<%
				for(int column = 0; column < record.size(); column++) {
					String data = record.get(column);
		%>
					<% if(row == 0) { %>
						<td align="center">
					<%} else { %>
						<td align="left">
					<% } %>
						<%=data %></td>
					<% } %>
				</tr>

		<% } %>
	</table>
</body>
</html>